﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Practicum_2
{
    public class Split
    {
        public int attributeNoSplit;//which attribute the question is about
        public double valueSplit;//always >
        public double giniIndex;

        public Split(int a, double v, double g)
        {
            this.attributeNoSplit = a;
            this.valueSplit = v;
            this.giniIndex = g;
        }

        public String toString()
        {
            String result = "";
            result += "attribute " + this.attributeNoSplit + "\r\n";
            result += "value " + this.valueSplit + "\r\n";
            result += "gini " + this.giniIndex + "\r\n";
            return result;
        }
    }
}
